// 客户类别
export const customerCategoryOptions = [
  { key: "0", value: "A/C Manage Client" },
  { key: "1", value: "Charter Client" },
  { key: "2", value: "Temporary Charter Client" },
  { key: "3", value: "Hourly card Client" },
  { key: "4", value: "Other Client" },
]
export const customerCategoryKV = customerCategoryOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

// 客户类型
export const customerTypeOptions = [
  { key: "0", value: "NORM" },
  { key: "1", value: "CIP" },
  { key: "2", value: "VIP" },
  { key: "3", value: "VVIP" },
]
export const customerTypeKV = customerTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})


// 反馈客户类型
export const feedbackTypeOptions = [
  { key: "1000", value: "功能异常" },
  { key: "1001", value: "体验问题" },
  { key: "1002", value: "产品建议" },
  { key: "1003", value: "其它问题" },
]
export const feedbackTypeKV = feedbackTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

// 投诉处理状态
export const stageTypeOptions = [
  { key: "0", value: "未处理" },
  { key: "1", value: "已处理" }
]
export const stageTypeKV = stageTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})


// 客户状态
export const customerStatusOptions = [
  { key: "In Service", value: "In Service" },
  { key: "Out Service", value: "Out Service" }
]
export const customerStatusKV = customerStatusOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})


export const userStatusOptions = [
  { key: "0", value: "启用", type: 'success' },
  { key: "1", value: "禁用", type: 'danger' }
]
export const userStatusKV = userStatusOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

export const userStatusKeyTag = userStatusOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.type
  return acc
}, {})


export const contactOptions = [
  { key: "MVTContact", value: "MVT-Contact" },
  { key: "TripSheetContact", value: "TripSheet-Contact" },
  { key: "FuelContact", value: "Fuel-Contact" },
  { key: "FinancialContact", value: "Financial-Contact" },
]
export const contactKV = contactOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

// CANCEL("00","取消"),
// INIT("01","初始化"),
// SUBMIT("02","已提交"),
// PROVE("03","论证中"),
// PLAN("04","计划下发"),
// BOARDING("05","执行中"),
// COMPLETE("09","完成"),
export const flightStateOption = [
  { key: "00", value: "取消" },
  { key: "01", value: "确认中" },
  { key: "02", value: "已提交" },
  { key: "03", value: "论证中" },
  { key: "04", value: "计划下发" },
  { key: "05", value: "执行中" },
  { key: "09", value: "完成" },
]
export const flightStateKV = flightStateOption.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})
// flightType
// 类型飞行类型 0：公务 1：调机
export const flightTypeOption = [
  { key: "0", value: "公务" },
  { key: "1", value: "调机" },
  { key: "2", value: "包机" }
]
export const flightTypeKV = flightTypeOption.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

// passengerTypeOptions
export const passengerTypeOptions = [
  { key: "0", value: "成人" },
  { key: "1", value: "儿童" },
  { key: "2", value: "婴儿" }
]
export const passengerTypeKV = passengerTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

export const genderOptions = [
  { key: "0", value: "女" },
  { key: "1", value: "男" }
]
export const genderKV = genderOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

// 接送类型 0：接机 1：送机
export const vehicleTypeOptions = [
  { key: "0", value: "接机" },
  { key: "1", value: "送机" }
]
export const vehicleTypeKV = vehicleTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})

// 是否VIP：N 否 Y 是
export const vipFlagOptions = [
  { key: "N", value: "否" },
  { key: "Y", value: "是" }
]
export const vipFlagKV = vipFlagOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.value
  return acc
}, {})
